package com.springBoot.repository.union;

import com.springBoot.entity.union.UserWithRoleEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserWithRoleRepository {

    public List<UserWithRoleEntity> selectByParams(UserWithRoleEntity entity);

    public Integer delete(UserWithRoleEntity entity);

    public UserWithRoleEntity login(@Param("userAcc")String userAcc, @Param("userPwd")String userPwd);

    public UserWithRoleEntity getUserInfoByUserId(@Param("userId")String userId);
}
